<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.util.DESUtil"%>
<%@page import="com.util.SuperString"%>
<%@page import="com.mtbu.comm.Util"%>
<%@page import="java.util.*"%>
<%@page import="com.mtbu.bean.*"%>
<%@page import="com.mtbu.dao.*"%>
<%@include file="sys_commcheck.jsp"%>
<%
	String mid = DESUtil.decodeString(request.getParameter("mid"),Util.getProperties("CONST_DES_KEY"));
	//用户具有的权限
	String user_func = SuperString.notNullTrim(Constant_User.getFuncmap().get(mid));

	//boolean isHasAdd2Wasu = user_func.indexOf(",_F_A2WS,")>=0;
	//boolean isHasAdd250k = user_func.indexOf(",_F_A250,")>=0;
	//boolean isHasAdd2ShiYun = user_func.indexOf(",_F_A2SY,")>=0;
	//boolean isHasAdd2FaDian = user_func.indexOf(",_F_A2FD,")>=0;
	//boolean isHasAdd2Cntv = user_func.indexOf(",_F_A2CT,")>=0;

	boolean isHasAdd2Cntv = user_func.indexOf(",_F_A2CNTV,")>=0;
	boolean isHasAdd2Cibn = user_func.indexOf(",_F_A2CIBN,")>=0;


    String[] tab_urls = {"channel_list.jsp","channel_cntv.jsp","channel_cibn.jsp"};
    String[] tab_names = {"基础节目","CNTV节目","CIBN节目"};
    boolean[] tab_func = {true,isHasAdd2Cntv,isHasAdd2Cibn};
    String[] tab_tbl = {"","cntv","cibn"};
	String[] _statuscolors = new String[]{"#ff1100","#0033FF","","#999999","#ff7700"};

	//这里要获得每个用户，有哪些project的,step的type=2的权限
	List<Project> projects =  DAOManager.projectDao.findChannelJoinAllowProjects(Constant_User);
	//System.out.println("project:" + projects.size());
%>